import { OrderQueryService } from "./order.query.service";
import { PositionService } from "./position.service";
import { ProductService } from "./product.service";
import { RiskService } from "./risk.service";

let isServiceStarted = false;

function startProductService() {
  const service = ProductService.getInstance();
}

function startOrderService() {
  const service = OrderQueryService.getInstance();
}

function startRisktService() {
  const service = RiskService.getInstance();
}

function startPositionService() {
  const service = PositionService.getInstance();
}

export function startAllServices() {
  if (isServiceStarted) return;

  startProductService();
  startPositionService();
  startRisktService();
  startOrderService();
}
